package com.jy.api.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by lihu on 2017/9/12.
 */
@Component
public class SalesUrlUtil {

    @Value("${sales.address}")
    private String address;






    /**
     * 验证码校验地址
     *
     * @return
     */
    public String getCheckUrl() {
        String url = address + "/api/v1/sales/check/referral-code";
        return url;
    }

    public String getReduceCodeUrl(){
        String url = address + "/api/v1/sales/check/reduce/refCode";
        return url;
    }


    /**
     * 验证码校验地址
     *
     * @return
     */
    public String postCode() {
        String url = address + "/api/v1/sales/check/referral-code";
        return url;
    }


    /**
     * 提成记录接口
     *
     * @return
     */
    public String commissionUrl() {
        String url = address + "/api/v1/sales/commission";
        return url;
    }

}
